﻿using Mes.Domain.BoundedContext.EntityBase;

namespace Mes.Domain.BoundedContext.Entities.Quality
{
    /// <summary>
    /// 采样计划与采样计划频率关联表
    /// </summary>
    public class SamplePlanFreqLink : NoIdEntityBase
    {
        public SamplePlanFreqLink() { }

        public SamplePlanFreqLink(int planId, int freqId, DateTime lastEditAt)
        {
            Plan_Id = planId;
            Freq_Id = freqId;
            Last_Edit_At = lastEditAt;
        }

        /// <summary>
        /// 采样计划id
        /// </summary>
        public int Plan_Id { get; set; } = 0;

        /// <summary>
        /// 采样计划频率id
        /// </summary>
        public int Freq_Id { get; set; } = 0;

        /// <summary>
        /// 最新更新备注，为何更新
        /// </summary>
	    public string? Last_Edit_Comment { get; set; } = null;

        /// <summary>
        /// 最新更新用户
        /// </summary>
        public string Last_Edit_By { get; set; } = string.Empty;

        /// <summary>
        /// 最新更新时间
        /// </summary>
        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        /// <summary>
        /// 主键，行id
        /// </summary>
        public int Row_Id { get; set; } = 0;
    }
}
